<!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
<stack>
<name>in.2</name>
<id>-1</id>
<cardCount>1</cardCount>
<cardID>2871</cardID>
<listID>4596</listID>
<cantModify><false /></cantModify>
<cantDelete><false /></cantDelete>
<cantAbort><false /></cantAbort>
<cardSize>
<width>512</width>
<height>342</height>
</cardSize>
<script>∞∞∞∞ Script info for "Stack Analyzer 22", STACK ∞∞∞∞HANDLERS:-- parseBkgd, parseBkgdButton, parseBkgdFld, parseCardButton,-- parseCardFld, parseCards, parseScript, parseStack,-- scrollFieldGLOBALS:-- , holdMyPlace, theTextFileSTATS: 13276 chars, 361 lines, 3/14/92, 12:21 PM∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞on parseStackglobal holdMyPlace, theTargetStack, theTextFile, theTextDump, ¬theScript, theLeadSpace, theTargetBkgdgo to theTargetStackput the script of this stack into theScriptput the number of backgrounds into theBkgdCntwrite return & " -> # of cards:" ¬& the number of cards in this stack ¬& " # of backgrounds:" & theBkgdCnt ¬to file theTextFilewrite return & " size:" & the size of this stack ¬& " freespace:" & the freeSize of this stack ¬to file theTextFilewrite return & " cantModify:" & the cantModify of this stack ¬& " cantPeek:" & the cantPeek of this stack ¬& " cantAbort:" & the cantAbort of this stack ¬& return to file theTextFileput " number of backgrounds = " & theBkgdCnt ¬& " number of cards = " & the number of cards in this stack ¬into statusLinego to holdMyPlaceput return & statusLine & return after card field "statusField"put return & " analyzing the stack script..." & return after ¬card field "statusField"scrollFieldunlock screenlock screenwrite return & " -> Stack Msg Handlers & Functions:" ¬& return to file theTextFileput " " into theLeadSpaceparseScriptrepeat with i = 1 to theBkgdCntgo to holdMyPlaceput return & " analyzing background #" & i & "..." & return ¬after card field "statusField"scrollFieldunlock screenlock screenwrite return & " ** BACKGROUND #" & i & " **" ¬& return & return to file theTextFilego to theTargetStackput the ID of background i into theTargetBkgdparseBkgdend repeatend parseStackon parseBkgdglobal holdMyPlace, theTargetStack, theTextFile, theTextDump, ¬theScript, theLeadSpace, theTargetBkgd, theTargetField, ¬theTargetButtongo to card 1 of background ID theTargetBkgdput the number of cards in this background into cardCounterwrite " -> # of cards:" & cardCounter ¬& " # of fields:" & the number of background fields ¬& " # of buttons:" & the number of background buttons ¬& return to file theTextFileput " # of fields = " & the number of background fields ¬& " # of buttons = " & the number of background buttons ¬& " # of cards = " & cardCounter ¬& return & " analyzing the background script..." into statusLinepush cardgo to holdMyPlaceput statusLine after card field "statusField"scrollFieldunlock screenlock screenpop cardwrite return & " -> Background Properties:" ¬& return to file theTextFilewrite " id:" & theTargetBkgd & ¬" name:" & the short name of this background & return ¬to file theTextFilewrite " don'tSearch:" & the dontSearch of this background & ¬" cantDelete:" & the cantDelete of this background & return ¬to file theTextFilewrite return & " -> Background Msg Handlers & Functions:" ¬& return to file theTextFileput the script of this background into theScriptif theScript = empty thenwrite " -none-" & return to file theTextFileelseput " " into theLeadSpaceparseScriptend ifwrite return & " -> Background Fields:" ¬& return to file theTextFileput return & " analyzing the background fields..." ¬& return into statusLinepush cardgo to holdMyPlaceput statusLine after card field "statusField"scrollFieldunlock screenlock screenpop cardrepeat with i = 1 to number of background fieldsput the ID of background field i into theTargetFieldparseBkgdFldend repeatwrite return to file theTextFilewrite return & " -> Background Buttons:" ¬& return to file theTextFileput " analyzing the background buttons..." ¬& return into statusLinepush cardgo to holdMyPlaceput statusLine after card field "statusField"scrollFieldunlock screenlock screenpop cardrepeat with i = 1 to number of background buttonsput the ID of background button i into theTargetButtonparseBkgdButtonend repeatwrite return & " -> 'Active' Cards" & return to file theTextFileparseCardsend parseBkgdon parseBkgdFldglobal theTextFile, theScript, theLeadSpace, theTargetFieldput "background field ID " & theTargetField into theFieldwrite " - Bkgd Fld #" & the number of theField ¬& return to file theTextFilewrite " - Properties:" & return to file theTextFilewrite " id:" & theTargetField ¬& " name:" & the short name of theField ¬& return to file theTextFilewrite " textFont:" & the textFont of theField ¬& " textSize:" & the textSize of theField ¬& " textStyle:" & the textStyle of theField ¬& return to file theTextFilewrite " visible:" & the visible of theField ¬& " lockText:" & the lockText of theField ¬& " dontSearch:" & the dontSearch of theField ¬& return to file theTextFilewrite " textAlign:" & the textAlign of theField ¬& " dontWrap:" & the dontWrap of theField ¬& return to file theTextFilewrite " textHeight:" & the textHeight of theField ¬& " fixedLineHeight:" & the fixedLineHeight of theField ¬& return to file theTextFilewrite " style:" & the style of theField ¬& " showLines:" & the showLines of theField ¬& return to file theTextFilewrite " autoTab:" & the autoTab of theField ¬& " wideMargins:" & the wideMargins of theField ¬& return to file theTextFilewrite " top:" & the top of theField ¬& " left:" & the left of theField ¬& " right:" & the right of theField ¬& " bottom:" & the bottom of theField ¬to file theTextFilewrite return & " - Msg Handlers & Functions:" ¬& return to file theTextFileput " " into theLeadSpaceput the script of theField into theScriptif theScript = empty thenwrite " -none-" & return to file theTextFileelseput " " into theLeadSpaceparseScriptend ifend parseBkgdFldon parseBkgdButtonglobal theTextFile, theScript, theLeadSpace, theTargetButtonput " background button ID " & theTargetButton into theButtonwrite " - Bkgd Button #" & the number of theButton ¬& return to file theTextFilewrite " - Properties:" & return to file theTextFilewrite " id:" & theTargetButton ¬& " name:" & the short name of theButton ¬& return to file theTextFilewrite " textFont:" & the textFont of theButton ¬& " textSize:" & the textSize of theButton ¬& " textStyle:" & the textStyle of theButton ¬& return to file theTextFilewrite " visible:" & the visible of theButton ¬& " style:" & the style of theButton ¬& " showName:" & the showName of theButton ¬& return to file theTextFilewrite " hilite:" & the hilite of theButton ¬& " icon:" & the icon of theButton ¬& return to file theTextFilewrite " sharedHilite:" & the sharedHilite of theButton ¬& " autoHilite:" & the autoHilite of theButton ¬& return to file theTextFilewrite " top:" & the top of theButton ¬& " left:" & the left of theButton ¬& " right:" & the right of theButton ¬& " bottom:" & the bottom of theButton ¬to file theTextFilewrite return & " - Msg Handlers & Functions:" ¬& return to file theTextFileput " " into theLeadSpaceput the script of theButton into theScriptif theScript = empty thenwrite " -none-" & return to file theTextFileelseput " " into theLeadSpaceparseScriptend ifend parseBkgdButtonon parseCardsglobal theTextFile, theTextDump, theScript, theLeadSpace, ¬theTargetField, theTargetButton, holdMyPlaceput " scanning for card level fields/buttons/scripts..." ¬& return into statusLinepush cardgo to holdMyPlaceput statusLine after card field "statusField"scrollFieldunlock screenlock screenpop cardgo to last card of this backgroundrepeat for number of cards in this backgroundgo to next card in this backgroundif the number of card buttons + the number of card fields ¬+ the number of characters in the script of this card = 0 thennext repeatelsewrite " - Card #: " & the number of this card ¬& return to file theTextFilewrite " - Card Msg Handlers & Functions" & return ¬to file theTextFileput " " into theLeadSpaceput the script of this card into theScriptif theScript = empty thenwrite " -none-" & return to file theTextFileelseparseScriptend ifrepeat with i = 1 to number of card fieldsput the ID of card field i into theTargetFieldparseCardFldend repeatrepeat with i = 1 to number of card buttonsput the ID of card button i into theTargetButtonparseCardButtonend repeatend ifend repeatend parseCardson parseScriptglobal theTextFile, theTextDump, theScript, theLeadSpacerepeat with i = 1 to number of lines in theScriptif theTextDump thenwrite theLeadSpace & line i of theScript ¬& return to file theTextFileelseif word 1 of line i of theScript = "on" or ¬word 1 of line i of theScript = "function" thenwrite theLeadSpace & line i of theScript ¬& return to file theTextFileend ifend ifend repeatend parseScripton parseCardFldglobal theTextFile, theScript, theLeadSpace, theTargetFieldput "card field ID " & theTargetField into theFieldwrite " - Card Fld #" & the number of theField ¬& return to file theTextFilewrite " - Properties:" & return to file theTextFilewrite " id:" & theTargetField ¬& " name:" & the short name of theField ¬& return to file theTextFilewrite " textFont:" & the textFont of theField ¬& " textSize:" & the textSize of theField ¬& " textStyle:" & the textStyle of theField ¬& return to file theTextFilewrite " visible:" & the visible of theField ¬& " lockText:" & the lockText of theField ¬& " dontSearch:" & the dontSearch of theField ¬& return to file theTextFilewrite " textAlign:" & the textAlign of theField ¬& " dontWrap:" & the dontWrap of theField ¬& return to file theTextFilewrite " textHeight:" & the textHeight of theField ¬& " fixedLineHeight:" & the fixedLineHeight of theField ¬& return to file theTextFilewrite " style:" & the style of theField ¬& " showLines:" & the showLines of theField ¬& return to file theTextFilewrite " autoTab:" & the autoTab of theField ¬& " wideMargins:" & the wideMargins of theField ¬& return to file theTextFilewrite " top:" & the top of theField ¬& " left:" & the left of theField ¬& " right:" & the right of theField ¬& " bottom:" & the bottom of theField ¬to file theTextFilewrite return & " - Msg Handlers & Functions:" ¬& return to file theTextFileput " " into theLeadSpaceput the script of theField into theScriptif theScript = empty thenwrite " -none-" & return to file theTextFileelseput " " into theLeadSpaceparseScriptend ifend parseCardFldon parseCardButtonglobal theTextFile, theScript, theLeadSpace, theTargetButtonput " card button ID " & theTargetButton into theButtonwrite " - Card Button #" & the number of theButton ¬& return to file theTextFilewrite " - Properties:" & return to file theTextFilewrite " id:" & theTargetButton ¬& " name:" & the short name of theButton ¬& return to file theTextFilewrite " textFont:" & the textFont of theButton ¬& " textSize:" & the textSize of theButton ¬& " textStyle:" & the textStyle of theButton ¬& return to file theTextFilewrite " visible:" & the visible of theButton ¬& " style:" & the style of theButton ¬& " showName:" & the showName of theButton ¬& return to file theTextFilewrite " hilite:" & the hilite of theButton ¬& " icon:" & the icon of theButton ¬& return to file theTextFilewrite " sharedHilite:" & the sharedHilite of theButton ¬& " autoHilite:" & the autoHilite of theButton ¬& return to file theTextFilewrite " top:" & the top of theButton ¬& " left:" & the left of theButton ¬& " right:" & the right of theButton ¬& " bottom:" & the bottom of theButton ¬to file theTextFilewrite return & " - Msg Handlers & Functions:" ¬& return to file theTextFileput " " into theLeadSpaceput the script of theButton into theScriptif theScript = empty thenwrite " -none-" & return to file theTextFileelseput " " into theLeadSpaceparseScriptend ifend parseCardButtonon scrollFieldif (the number of lines in card field "statusField" ¬* the textHeight of card field "statusField") ¬> (the bottom of card field "statusField" ¬- the top of card field "statusField") thenset the scroll of card field "statusField" to ¬(the number of lines in card field "statusField" ¬* the textHeight of card field "statusField") ¬- (the bottom of card field "statusField" ¬- the top of card field "statusField")end ifend scrollField</script>